package com.example.demo.constants.pojo;

import java.util.ArrayList;
import java.util.List;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@Api(tags = "用户实体")
@ApiModel(value = "UserInfo" ,description = "用户信息")
public class UserInfo extends SessionTokenInfo {
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "用户编号", name = "用户编号", notes = "用户ID")	
    private String userId;
	
	@ApiModelProperty(value = "姓名", name = "姓名", notes = "用户姓名")	
	private String name;
	
	@ApiModelProperty(value = "账号", name = "账号" , required = true )
	private String userName;
	
	@ApiModelProperty(value = "登录密码", name = "登录密码" , hidden = true )
	private String password;
	
	@ApiModelProperty(value = "角色名描述", name = "角色名描述")
	private String rolesDescription;
	
	@ApiModelProperty(value = "所有角色", name = "所有角色", hidden=true )
	private List<RoleInfo> roles= new ArrayList<RoleInfo>();
}
